package com.qing.administer.result;

//状态码枚举
public enum ResultCode implements CommonEnum {
    SUCCESS(20000,"success"),
    PAGE_NOT_FOUND(40000,"接口不存在"),
    UNKNOWN_EXCEPTION(5000,"操作失败"),

    USER_NOT_LOGIN(1000,"用户未登录"),
    USER_NOT_EXIST(1001,"用户不存在"),
    USER_PASSWORD_ERROR(1002,"用户密码错误");


    private Integer code;

    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public CommonEnum setErrorMsg(String errorMsg) {
        this.message=errorMsg;
        return this;
    }


}
